<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<fieldset>
  <s:form action="workerAction!add.action" method="post" style="width: 260px">
    <legend>添加工人信息</legend>
    <s:textfield name="worker.workerName" label="工人姓名" value="" />
    <s:select label="性别" name="worker.sex" list="#{1:'男',0:'女'}" value="" />
    <s:textfield name="worker.telephone" label="工人电话" value="" />
    <s:select label="工程" name="worker.projectId" list="projects" listKey="projectId"
      listValue="projectName" />
    <s:submit value="添加" />
  </s:form>
</fieldset>
